﻿
@{
    ViewBag.Title = "联系我们 | 大卫杜夫 | 雪茄";
}

<div class="contact_mainbox">
    <div class="kv">
        <h1>与我<span>们取得</span>联系</h1>
        <p>我们非常高兴能和同样身为雪茄爱好者的你进行一番交流。<br>请在下方填写相关信息，我们大卫杜夫的工作人员在短时间内与您取得联系。</p>
    </div>
    <div class="contact_cont">
        <div class="contact_md">
            <div class="maincont">
                <form class="cmxform" id="commentForm" method="get" action="">
                    <!-- row start -->
                    <div class="row">
                        <div class="col-sm-12 col-md-4 col-lg-4 col-xl-4 col-tt">
                            查询需求
                        </div>
                        <div class="col-sm-12 col-md-8 col-lg-8 col-xl-8 col-zx">
                            <select id="QUERY_TYPE">
                                <option>一般咨询</option>
                                <option>客户服务</option>
                                <option>媒体询问</option>
                                <option>活动咨询</option>
                            </select>
                        </div>
                    </div>
                    <!-- row start -->
                    <div class="row">
                        <div class="col-sm-12 col-md-4 col-lg-4 col-xl-4 col-tt">
                            姓名<span class="red">*</span>
                        </div>
                        <div class="col-sm-12 col-md-8 col-lg-8 col-xl-8 col-zx">
                            <input value="" type="text" name="NAME" id="NAME">
                        </div>
                    </div>
                    <!-- row start -->
                    <div class="row">
                        <div class="col-sm-12 col-md-4 col-lg-4 col-xl-4 col-tt">
                            国家<span class="red">*</span>
                        </div>
                        <div class="col-sm-12 col-md-8 col-lg-8 col-xl-8 col-zx">
                            <select name="COUNTRY" id="COUNTRY">
                                <option value="">请选择一个国家</option>
                                <option value="中国">中国</option>
                                <option value="美国">美国</option>
                            </select>
                        </div>
                    </div>
                    <!-- row start -->
                    <div class="row">
                        <div class="col-sm-12 col-md-4 col-lg-4 col-xl-4 col-tt">
                            邮件<span class="red">*</span>
                        </div>
                        <div class="col-sm-12 col-md-8 col-lg-8 col-xl-8 col-zx">
                            <input value="" type="email" name="EMAIL" id="EMAIL">
                        </div>
                    </div>
                    <!-- row start -->
                    <div class="row">
                        <div class="col-sm-12 col-md-4 col-lg-4 col-xl-4 col-tt">
                            留言信息
                        </div>
                        <div class="col-sm-12 col-md-8 col-lg-8 col-xl-8 col-zx">
                            <textarea rows="5" id="CONTENT"></textarea>
                        </div>
                    </div>
                    <!-- row start -->
                    <div class="row">
                        <div class="col-sm-12 col-md-4 col-lg-4 col-xl-4 col-tt">
                        </div>
                        <div class="col-sm-12 col-md-8 col-lg-8 col-xl-8 col-zx">
                            <div class="inputbox">
                                <p>
                                    <label>
                                        <input type="checkbox" id="chk_privacy" name="chk_privacy"><span class="gmfl">
                                            我特此同意ODAG采集并且使用我的个人数据,以便与我沟通关于以上表格我所提交的内容(
                                            <a class="spantt" href="#inline1" id="various1">使用条款</a>）
                                        </span>
                                    </label>
                                </p>
                                <p><label><input type="checkbox" id="chk_post" name="chk_post"><span class="gmfl">我特此同意ODAG与我取得联系,就表格上提交的内容</span></label></p>
                                <p>在我们<a class="spantt" href="#inline2" id="various2">隐私声明</a>中详细了解我们如何处理您的个人数据</p>
                                <input type="submit" value="发送信息" class="btn_send" id="btn_send">
                            </div>
                        </div>
                    </div>
                    <!-- row end -->
                </form>
            </div>
        </div>
        <div style="display: none;">
            <div id="inline1" class="popbox">
                <div class="pop_maincont">
                    <h1 class="bold">Terms &amp; Conditions</h1>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>You can contact us via email at the following address:&nbsp;<a href="mailto:info@davidoffofgeneva.com">info@davidoffofgeneva.com</a></p>
                    <h2>1. Changes to These Terms of Use.</h2>
                    <p>
                        We reserve the right, at our complete discretion, to change these Terms of Use at any time by posting revised
                        Terms of Use on the Website.&nbsp; All changes are effective immediately when we post them, and apply to all
                        access to and use of the Website thereafter. &nbsp;It is your responsibility to check periodically for any
                        changes we may make to these Terms of Use. &nbsp;Your continued use of the Website following the posting of
                        changes to these Terms of Use means you accept the changes.
                    </p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>You can contact us via email at the following address:&nbsp;<a href="mailto:info@davidoffofgeneva.com">info@davidoffofgeneva.com</a></p>
                    <h2>1. Changes to These Terms of Use.</h2>
                    <p>
                        We reserve the right, at our complete discretion, to change these Terms of Use at any time by posting revised
                        Terms of Use on the Website.&nbsp; All changes are effective immediately when we post them, and apply to all
                        access to and use of the Website thereafter. &nbsp;It is your responsibility to check periodically for any
                        changes we may make to these Terms of Use. &nbsp;Your continued use of the Website following the posting of
                        changes to these Terms of Use means you accept the changes.
                    </p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>You can contact us via email at the following address:&nbsp;<a href="mailto:info@davidoffofgeneva.com">info@davidoffofgeneva.com</a></p>
                    <h2>1. Changes to These Terms of Use.</h2>
                    <p>
                        We reserve the right, at our complete discretion, to change these Terms of Use at any time by posting revised
                        Terms of Use on the Website.&nbsp; All changes are effective immediately when we post them, and apply to all
                        access to and use of the Website thereafter. &nbsp;It is your responsibility to check periodically for any
                        changes we may make to these Terms of Use. &nbsp;Your continued use of the Website following the posting of
                        changes to these Terms of Use means you accept the changes.
                    </p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>You can contact us via email at the following address:&nbsp;<a href="mailto:info@davidoffofgeneva.com">info@davidoffofgeneva.com</a></p>
                    <h2>1. Changes to These Terms of Use.</h2>
                    <p>
                        We reserve the right, at our complete discretion, to change these Terms of Use at any time by posting revised
                        Terms of Use on the Website.&nbsp; All changes are effective immediately when we post them, and apply to all
                        access to and use of the Website thereafter. &nbsp;It is your responsibility to check periodically for any
                        changes we may make to these Terms of Use. &nbsp;Your continued use of the Website following the posting of
                        changes to these Terms of Use means you accept the changes.
                    </p>
                </div>
            </div>
        </div>
        <div style="display: none;">
            <div id="inline2" class="popbox">
                <div class="pop_maincont">
                    <h1 class="bold">Terms &amp; Conditions</h1>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>You can contact us via email at the following address:&nbsp;<a href="mailto:info@davidoffofgeneva.com">info@davidoffofgeneva.com</a></p>
                    <h2>1. Changes to These Terms of Use.</h2>
                    <p>
                        We reserve the right, at our complete discretion, to change these Terms of Use at any time by posting revised
                        Terms of Use on the Website.&nbsp; All changes are effective immediately when we post them, and apply to all
                        access to and use of the Website thereafter. &nbsp;It is your responsibility to check periodically for any
                        changes we may make to these Terms of Use. &nbsp;Your continued use of the Website following the posting of
                        changes to these Terms of Use means you accept the changes.
                    </p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>You can contact us via email at the following address:&nbsp;<a href="mailto:info@davidoffofgeneva.com">info@davidoffofgeneva.com</a></p>
                    <h2>1. Changes to These Terms of Use.</h2>
                    <p>
                        We reserve the right, at our complete discretion, to change these Terms of Use at any time by posting revised
                        Terms of Use on the Website.&nbsp; All changes are effective immediately when we post them, and apply to all
                        access to and use of the Website thereafter. &nbsp;It is your responsibility to check periodically for any
                        changes we may make to these Terms of Use. &nbsp;Your continued use of the Website following the posting of
                        changes to these Terms of Use means you accept the changes.
                    </p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>You can contact us via email at the following address:&nbsp;<a href="mailto:info@davidoffofgeneva.com">info@davidoffofgeneva.com</a></p>
                    <h2>1. Changes to These Terms of Use.</h2>
                    <p>
                        We reserve the right, at our complete discretion, to change these Terms of Use at any time by posting revised
                        Terms of Use on the Website.&nbsp; All changes are effective immediately when we post them, and apply to all
                        access to and use of the Website thereafter. &nbsp;It is your responsibility to check periodically for any
                        changes we may make to these Terms of Use. &nbsp;Your continued use of the Website following the posting of
                        changes to these Terms of Use means you accept the changes.
                    </p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>Terms of Use for the Davidoff of Geneva USA, Inc. Website</p>
                    <p>You can contact us via email at the following address:&nbsp;<a href="mailto:info@davidoffofgeneva.com">info@davidoffofgeneva.com</a></p>
                    <h2>1. Changes to These Terms of Use.</h2>
                    <p>
                        We reserve the right, at our complete discretion, to change these Terms of Use at any time by posting revised
                        Terms of Use on the Website.&nbsp; All changes are effective immediately when we post them, and apply to all
                        access to and use of the Website thereafter. &nbsp;It is your responsibility to check periodically for any
                        changes we may make to these Terms of Use. &nbsp;Your continued use of the Website following the posting of
                        changes to these Terms of Use means you accept the changes.
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="~/Content/static/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="/Content/static/lib/fancyBox-2.1.5/source/jquery.fancybox.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="/Content/static/lib/fancyBox-2.1.5/source/jquery.fancybox.css?v=2.1.5" media="screen" />
<style>
    em.error {
        color: red;
        display: block;
    }
</style>
<script>
    var API_BASE =  location.protocol + '//' + location.hostname + '/api'
    var submitLoc = false
    $.validator.setDefaults({
        submitHandler: function () {
            if (submitLoc)
                return

            $('#btn_send').attr('disabled', "true");
			let prdParams = {
				"cmd": "feedback.add",
				"param": {
					"QUERY_TYPE": $("#QUERY_TYPE").val(),
					"NAME": $("#NAME").val(),
					"COUNTRY": $("#COUNTRY").val(),
					"EMAIL": $("#EMAIL").val(),
					"CONTENT": $("#CONTENT").val()

				}
			}
            if (prdParams.param.CONTENT.length > 128) {
                alert('内容长度不能超过 128 个字符')
                return
            }

            submitLoc = true
			$.ajax({
				type: "POST",
				url: API_BASE + "/CMS",
				contentType: "application/json; charset=utf-8",
				data: JSON.stringify(prdParams),
				dataType: "json",
				success: function (data) {
					if (data.code == 0) {
					    alert("提交成功");
                        window.location.href="/"
					}
				},
				error: function (message) {
					alert(message)
				},
                complete: function (){
                    submitLoc = false
					$('#btn_send').attr('disabled', "false");
                }
			});
		}
	});
	$(function () {
		$("#various1,#various2").fancybox({
			'transitionIn': 'none',
			'transitionOut': 'none',
			'scrolling': "no"
		});
		$("#commentForm").validate({
			errorElement: "em",
			rules: {
				NAME: "required",
				COUNTRY: "required",
				EMAIL: "required",
				chk_privacy: "required",
				chk_post: "required"
			},
			messages: {
				NAME: "请输入姓名",
				COUNTRY: "请选择国家",
				EMAIL: "请输入正确的电子邮件",
				chk_privacy: "请同意使用条款",
				chk_post: "请同意提交的内容"
			}
		});
	})

</script>

